/*
 * @Author: liujinjun681 liujinjun681@qq.com
 * @Date: 2022-06-21 16:38:43
 * @LastEditors: liujinjun681 liujinjun681@qq.com
 * @LastEditTime: 2022-07-06 16:51:44
 * @FilePath: \hd_ims_web\src\api\repertory\PDA.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

/** PDA 出/入库客户编码列表 */
export function PDACusWldmList() {
  return request({
    url: '/repertory/PDA/PDACusWldmList',
    method: 'get',
  })
}

/** PDA 根据客户编码查询物料信息  */
export function getItmMstrByPDACustwldm(query) {
  return request({
    url: '/repertory/PDA/selectItmByPDACustwldm',
    method: 'get',
    params: query,
  })
}

/** 自动化入库 -入库提交 */
export function automaticStorage(wldm, rkck, rkNumber, bcdm) {
  return request({
    url: '/repertory/PDA/automaticStorage/' + wldm + '/' + rkck + '/' + rkNumber + '/' + bcdm,
    method: 'post',
  })
}
/** 自动化出库 -出库提交 */
export function automaticDelivery(rkNumber, wldm, rkck) {
  return request({
    url: '/repertory/PDA/automaticDelivery/' + rkNumber + '/' + wldm + '/' + rkck,
    method: 'post',
  })
}

/** 获取班别的入库信息 */
export function getStatisticsWarehousing(query) {
  return request({
    url: '/repertory/PDA/getStatisticsWarehousing',
    method: 'get',
    params: query,
  })
}

/** 获取班别的入库信息 */
export function getStatisticsWarehousingMultiple(query) {
  return request({
    url: '/repertory/PDA/getStatisticsWarehousingMultiple',
    method: 'get',
    params: query,
  })
}

/** 获取出库报表信息 */
export function getStatisticsWarehousingOut(query) {
  return request({
    url: '/repertory/PDA/getStatisticsWarehousingOut',
    method: 'get',
    params: query,
  })
}

export function exportWarehousingTable(query) {
  return request({
    url: '/repertory/PDA/exportWarehousingTable',
    method: 'get',
    params: query,
  })
}

export function getWarehousingTableDetail(query) {
  return request({
    url: '/repertory/PDA/getWarehousingTableDetail',
    method: 'get',
    params: query,
  })
}
